@import '../../../public/style/pxtorem';

.search-page{
  width: 100%;
  background-color: rgb(244, 244, 244);

  .fixed-search-container {
    position: fixed;
    top: 0;
    width: 100%;
    height: pxToRem(44);
    padding: 0 pxToRem(12);
    box-sizing: border-box;
    z-index: 1;
    background-color: #ffffff;

    .cancel-button {
      float: right;
      right: 0;
      color: #fb7299;
      font-size: pxToRem(15);
      margin-top: pxToRem(14);
    }

    .search-input-container {
      display: inline-block;
      width: pxToRem(309);
      height: pxToRem(30);
      margin-top: pxToRem(8);
      position: relative;

      .search-icon {
        width: pxToRem(22);
        height: pxToRem(22);
        position: absolute;
        left: pxToRem(10);
        top: pxToRem(5);
      }
      .close-search-icon {
        display: flex;
        justify-content: center;
        align-items: center;
        width: pxToRem(30);
        height: pxToRem(30);
        position: absolute;
        right: 0;
        top: 0;

        & svg {
          width: pxToRem(14);
          height: pxToRem(14);
        }
      }
      .search-input {
        width: 100%;
        height: 100%;
        padding-left: pxToRem(40);
        padding-right: pxToRem(100);
        outline: none;
        box-sizing: border-box;
        appearance: none;
        -webkit-appearance: none;
        background-color: #f4f4f4;
        border: pxToRem(0.5) solid #e7e7e7;
        color: #505050;
        border-radius: pxToRem(4);
        font-size: pxToRem(13);
      }
    }
  }

  .search-content {
    .label {
      font-size: 14px;
      color: #999999;
    }

    .hot-word-container {
      padding: 0 pxToRem(12);
      padding-top: pxToRem(16);
      padding-bottom: pxToRem(24);
      background-color: #ffffff;
      margin-bottom: pxToRem(12);

      .hot-word-area {
        display: flex;
        flex-wrap: wrap;
        height: pxToRem(93);
        box-sizing: border-box;
        overflow: hidden;

        .hot-word-item {
          margin-top: pxToRem(12);
          margin-right: pxToRem(8);
          padding: pxToRem(8) pxToRem(12);
          border: pxToRem(1) solid #ccc;
          border-radius: pxToRem(16);
          font-size: pxToRem(13);
          color: #505050;
        }
      }
    }

    .search-history-container {
      padding: pxToRem(14) pxToRem(12);
      background-color: #ffffff;


      .search-history-item {
        display: flex;
        align-items: center;
        height: pxToRem(45);
        border-bottom: 1px solid #ccc;

        & span {
          color: #505050;
          font-size: pxToRem(15);
        }
      }

      .history-icon {
        width: pxToRem(16);
        height: pxToRem(16);
        margin-right: 8px;
      }

      .clear-history-container {
        display: flex;
        font-size: pxToRem(14);
        justify-content: center;
        align-items: center;
        color: #999;
        height: pxToRem(46);
      }
    }
  }


  .suggest-area {
    height:calc(100vh - 1.83rem);

    .suggest-item {
      padding: pxToRem(16) 0;
      border-bottom: 1px solid #cccccc;
      margin-left: pxToRem(16);
    }

    .suggest_high_light {
      color: #fb7299;
      font-style: normal;
    }
  }



}
